// 您也可以使用 `contextBridge` API
// 将这段代码暴露给渲染器进程
const { contextBridge, ipcRenderer } = require('electron/renderer')

contextBridge.exposeInMainWorld('versions', {
  node: () => process.versions.node,
  chrome: () => process.versions.chrome,
  electron: () => process.versions.electron,
//   ping: () => ipcRenderer.invoke('ping'),
//   getJsonFiles: () => ipcRenderer.invoke('getJsonFiles'),
//   runPythonScript: () => ipcRenderer.invoke('runPythonScript'),
  'synchronous-message': () => ipcRenderer.invoke('ping')
})
